import { sessionGet } from '@/utils/sessionStorage'

const routerEnumeration = {
  LABRARY_QUERY: '图书查询',
  LABRARY_CHANGE: '书籍变更',
  HOME: '首页',
  HOME_USERS: '用户中心',
  BORROW_RECORDSS: '借阅记录',
  BORROW_REVIEW: '图书评论',
  ROLE_LIST: '用户列表',
  ROLE_CHANGE: '权限变更',
  SETTINGS_CONTROLS: '系统操作',
  SETTINGS_MENU: '菜单管理'
}

const routerPath = {
  LABRARY_QUERY: '/labrary/query',
  LABRARY_CHANGE: '/labrary/change',
  HOME: '/home',
  HOME_USERS: '/home/users'
}
/* const roleList = {
  HOME: {
    name: '首页',
    icon: '',
    role: { HOME_USERS: '用户中心' }
  },
  LABRARY: {
    name: '图书管理',
    icon: '',
    role: { LABRARY_QUERY: '图书查询', LABRARY_CHANGE: '书籍变更' }
  },
  BORROW: {
    name: '借阅信息',
    icon: '',
    role: { BORROW_RECORDSS: '借阅记录', BORROW_REVIEW: '图书评论' }
  },
  ROLE: {
    name: '用户信息',
    icon: '',
    role: { ROLE_LIST: '用户列表', ROLE_CHANGE: '权限变更' }
  },
  SETTINGS: {
    name: '系统设置',
    icon: '',
    role: { SETTINGS_CONTROLS: '系统操作', SETTINGS_MENU: '菜单管理' }
  },
  BOOKS: {
    name: '书籍借阅',
    icon: '',
    role: { BOOKS_QUERY: '书籍查询', BOOKS_CHANGE: '书籍管理' }
  }
} */
const roleList = { ...sessionGet('_menu') }
export { routerEnumeration, routerPath, roleList }
